﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PolePosition.v3.GoogleEarth.TestClient
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            mapControl1.StopMap();
        }

        private void buttonItemLoad_Click(object sender, EventArgs e)
        {
            mapControl1.StartMap();
        }

        private void buttonItemRefresh_Click(object sender, EventArgs e)
        {
            mapControl1.LoadKmlFromString(v3.GoogleEarth.TestClient.Properties.Resources.SampleKml);
        }

        private void buttonItemReset_Click(object sender, EventArgs e)
        {
            mapControl1.ResetPosition();
        }
    }
}
